package com.xbongbong.paas.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;

/**
 * @version v1.0
 * @auther: youli.chen
 * @describe: 快捷新建客户
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class FormDataFastAddGetDTO extends BaseDTO {

    private static final long serialVersionUID = -7601770202994348927L;


    /**
     * 应用id
     */
    @NotNull(message = "{dto.msg.formDataFastAddGet.appId.NotNull}")
    private Long appId;

    /**
     * 菜单id
     */
    @NotNull(message = "{dto.msg.formDataFastAddGet.menuId.NotNull}")
    private Long menuId;

    /**
     * 表单id
     */
    private Long formId;

    /**
     * SaaS标志
     *
     * @see com.xbongbong.pro.enums.SaasMarkEnum
     */
    private Integer saasMark;

    /**
     * SaaS业务类型，详见
     *
     * @see com.xbongbong.saas.enums.XbbRefTypeEnum
     */
    @NotNull(message = "{dto.msg.formDataFastAddGet.businessType.NotNull}")
    private Integer businessType;

    /**
     * 默认值的字段(客户电话或者名称)
     */
    private String defaultAttr;

    /**
     * 默认值
     */
    private String defaultValue;
}
